package com.gwtjs.icustom.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <h2>应用</h2>
 * 
 * @author flash
 *
 */
@Data
@NoArgsConstructor
@ApiModel("应用")
public class App {

	@ApiModelProperty("主键id")
	private Integer id;

	/** 应用名称，如mysql */
	@ApiModelProperty("应用名")
	private String appName;

	@ApiModelProperty("主机IP")
	private String appIp;

	/**
	 * 用来区分页面： 安装httpd时有应用安装 安装jdk时也有应用安装 但应用安装有先后顺序要求，只能分开安装 。
	 * [APP_TOOL|SYSTEM_TOOL]
	 */
	@ApiModelProperty("应用类型")
	private String appType;

	/** 登陆帐户 */
	@ApiModelProperty("登陆帐户")
	private String username;

	/** 登陆密码 */
	@ApiModelProperty("登陆密码")
	private String password;

	/** 数据库驱动 */
	@ApiModelProperty("数据库驱动")
	private String driver;

	/** 数据库驱动 */
	@ApiModelProperty("数据库驱动")
	private String isNtpdServer;

	/** 连接端口 */
	@ApiModelProperty("连接端口")
	private String port;

	/** app docker path */
	@ApiModelProperty("docker workspace")
	private String appDockerPath;

	/**
	 * 服务端否： 1.服务端: server 2.client . 其它，无主从的应用
	 * <h3>应用状态:不入库</h3>
	 */
	@ApiModelProperty("应用运行状态")
	private Integer appFlag;

	@Override
	public String toString() {
		return "App [id=" + id + ", appName=" + appName + ", appIp=" + appIp + ", appType=" + appType + ", username="
				+ username + ", password=" + password + ", driver=" + driver + ", isNtpdServer=" + isNtpdServer
				+ ", port=" + port + ", appDockerPath=" + appDockerPath + ", appFlag=" + appFlag + "]";
	}

	public String getIsNtpdServer() {
		return isNtpdServer;
	}

	public void setIsNtpdServer(String isNtpdServer) {
		this.isNtpdServer = isNtpdServer;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getDriver() {
		return driver;
	}

	public void setDriver(String driver) {
		this.driver = driver;
	}

	public String getPort() {
		return port;
	}

	public void setPort(String port) {
		this.port = port;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getAppName() {
		return appName;
	}

	public void setAppName(String appName) {
		this.appName = appName;
	}

	public String getAppIp() {
		return appIp;
	}

	public void setAppIp(String appIp) {
		this.appIp = appIp;
	}

	public String getAppType() {
		return appType;
	}

	public void setAppType(String appType) {
		this.appType = appType;
	}

	public Integer getAppFlag() {
		return appFlag;
	}

	public void setAppFlag(Integer appFlag) {
		this.appFlag = appFlag;
	}

	public String getAppDockerPath() {
		return appDockerPath;
	}

	public void setAppDockerPath(String appDockerPath) {
		this.appDockerPath = appDockerPath;
	}

}
